package com.hospital.service.impl;

import com.hospital.dao.SeedoctorDao;
import com.hospital.dao.UserDao;
import com.hospital.entity.SeeDoctor;
import com.hospital.entity.User;
import com.hospital.service.intf.SeeDocService;
import com.hospital.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fxy
 * @date 2022/8/31
 */
@Service
public class SeeDocServiceImpl implements SeeDocService {
    @Autowired
    private SeedoctorDao seedoctorDao;
    //添加一条诊断记录
    @Override
    public R addSeeDoc(SeeDoctor seeDoctor) {
        if(seedoctorDao.addSeedoc(seeDoctor)>0){
            return R.ok();
        }else {
            return R.fail();
        }
    }

}
